package com.bank.model;

public class Assets implements Comparable<Assets>{
    private String aid;
    private String price;
    private String income;
    private String date;
    private String num;
    private String product;
    private String type;

    public Assets() {
    }

    public Assets(String aid, String price, String income, String date, String num, String product, String type) {
        this.aid = aid;
        this.price = price;
        this.income = income;
        this.date = date;
        this.num = num;
        this.product = product;
        this.type = type;
    }

    public String getAid() {
        return aid;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getIncome() {
        return income;
    }

    public void setIncome(String income) {
        this.income = income;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Assets{" +
                "aid='" + aid + '\'' +
                ", price='" + price + '\'' +
                ", income='" + income + '\'' +
                ", date='" + date + '\'' +
                ", num='" + num + '\'' +
                ", product='" + product + '\'' +
                ", type='" + type + '\'' +
                '}';
    }

    @Override
    public int compareTo(Assets o) {
        return this.aid.compareTo(o.aid);
    }
}
